home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
printq.exe
/
PRINTAPP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-23
|
820b
|
52 lines
#if !defined(__PRINTAPP_H)
#define __PRINTAPP_H
#if !defined(__PRINTQ_H)
#include "PrintQ.h"
#endif
class TPrintAppInit
{
public:
TPrintAppInit(PrintQueue* (*fn)()) : createPrintQueue(fn)
{}
protected:
PrintQueue* (*createPrintQueue)();
};
class TEvent;
const ushort cmAddPrintJob = 50000U;
class TPrintApp : public TApplication, virtual public TPrintAppInit
{
public:
TPrintApp();
virtual void shutDown();
virtual void idle();
virtual void handleEvent(TEvent&);
virtual Boolean valid(ushort);
static PrintQueue* initPrintQueue();
static PrintQueue* printQueue;
};
class TPrintQueue : public PrintQueue
{
public:
TPrintQueue() {}
protected:
virtual int printString(const char*, int) const;
};
#endif // __PRINTAPP_H